const Koa = require('koa')  
const InitManager=require('./core/init') 
const parser = require('koa-bodyparser')
const catchError = require('./middlewares/exception')  //导入处理异常中间间

const app = new Koa()
app.use(catchError)    //执行--自动捕捉异常
app.use(parser()) //取body参数
InitManager.initCore(app) 

app.listen(3000)  